package com.dragon.english_practice_back.service;

import com.dragon.english_practice_back.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 伫倚
* @description 针对表【message(消息表)】的数据库操作Service
* @createDate 2025-03-09 20:14:01
*/
public interface MessageService extends IService<Message> {

    boolean hasAccessToSession(int id, Long sessionId);

    String getLastAssistantMessage(Integer userId, Integer sessionId);

    boolean insertAssistantMessage(Integer userId, String content, Integer sessionId);
}
